<?php
define( '_VALID_MOS', 1 );  
      $filename = "DailyInventoryForm.xls";
      header("Content-type: application/vnd.ms-excel");
      header("Content-Disposition: attachment; filename=$filename" );
      header("Expires: 0");
      header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
      header("Pragma: public");
echo $_POST['html-data'];
echo " <p style='text-align: center;'><b>Date</b>:  ".date('m-d-Y H:i:s ')."</p>";
	  
	  
      
      